const request = require('request')
const { baseUrl } = require('./config')
/**
 *
 * urlHandle
 * @param url
 * @param {request.jar} jar
 * @param {function} cb
 * @returns {status: 'success'}
 */
module.exports = (url, jar, cb) => {
  request.get({
    url: `${baseUrl}${url}`,
    jar: jar,
  }, (err, httpResponse, body) => {
    cb(body)
  })
}